package chat.aylan.top;
/*
 * @Author Abduahad
 * @Description 关闭工具
 * @Date 2019-01-10
 */
import java.io.Closeable;
import java.io.IOException;
public class CloseUtil {

    public static void closeAll(Closeable... args){
        for(Closeable io:args){
            if(io != null){
                try {
                    io.close();
                } catch (IOException e) {
                    System.out.println("bug at closing");
                    e.printStackTrace();
                }
            }
        }
    }

}
